package com.mdsoft.group.core;
import java.util.ArrayList;
import java.util.List;


public class AllChoose extends ArrayList<Choose>{
	private static final long serialVersionUID = -5742218807612444259L;

	public AllChoose(List<Choose> chooses) {
		super(chooses);
	}

	public Choose get(People fromPeople, People toPeople) {
		for (Choose choose : this) {
			if (choose.getFromPeople().equals(fromPeople) && choose.getToPeople().equals(toPeople)) {
				return choose;
			}
		}
		return null;
	}

}
